package org.lee.export.model;

import lombok.Getter;

/**
 * @author jackielee
 * @version 1.0
 * @description ResultCode
 * @date 2021/5/6
 **/
@Getter
public enum ResultCode {
    SUCCESS(0, "Ok"),
    FAILURE(-1, "Failure"),
    ERROR(500, "Error"),
    INVALID(400, "Invalid parameter"),
    ;

    private int code;
    private String message;

    ResultCode(int code, String message){
        this.code = code;
        this.message = message;
    }
}
